package com.visual.echart.model;


import lombok.ToString;

/**
 * 简介说明:
 *
 * @author: biboyuzhou
 * @date: 2025/06/14 18:31:07
 * @version:1.0
 */
@ToString
public class BaseResp {
    private boolean success;
    private int status;
    private String message;

    public BaseResp() {

    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void fillErrorResp(BaseResp baseResp) {
        baseResp.setSuccess(false);
        baseResp.setStatus(10000);
        baseResp.setMessage("system error");
    }

    public void setSuccessData() {
        this.success = true;
        this.status = 200;
    }

}
